package pers.sports.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import pers.sports.entity.Manager;

import java.util.List;

@Repository
public interface ManagerDao {

    //使用工号查询
    Manager findManagerByNum(String num);


    List<Manager> findAll(Integer begin, Integer limit);

    String findIdentityByName(String loginName);

    int findNumByManagerNum(@Param("managerNum") String managerNum);

    int insertManager(Manager manager);


    void updatePwdByNum(String number, String new_password);

    Integer countNumber();

    int deleteById(@Param("id") String id);
}
